#ifndef __ELA_GSENSOR_H__
#define __ELA_GSENSOR_H__


enum {
    GSENSOR_NONE_INTERRUPT          = 0x0000,
    GSENSOR_OVERRUN_INTERRUPT       = 0x0001,
    GSENSOR_WATERMARK_INTERRUPT     = 0x0002,
    GSENSOR_FREEFALL_INTERRUPT      = 0x0004,
    GSENSOR_INACTIVITY_INTERRUPT    = 0x0008,
    GSENSOR_ACTIVITY_INTERRUPT      = 0x0010,
    GSENSOR_DOUBLE_TAP_INTERRUPT    = 0x0020,
    GSENSOR_SINGLE_TAP_INTERRUPT    = 0x0040,
    GSENSOR_DATA_READY_INTERRUPT    = 0x0080,

    GSENSOR_ROTATE_UP_INTERRUPT     = 0x0100,
    GSENSOR_ROTATE_DOWN_INTERRUPT   = 0x0200,
    GSENSOR_ROTATE_LEFT_INTERRUPT   = 0x0300,
    GSENSOR_ROTATE_RIGHT_INTERRUPT  = 0x0400,
    GSENSOR_ROTATE_TOP_INTERRUPT    = 0x0500,
    GSENSOR_ROTATE_BOTTOM_INTERRUPT = 0x0600,
    GSENSOR_ROTATE_ZERO_INTERRUPT   = 0x0700,
    GSENSOR_ROTATE_INTERRUPT        = 0x0F00,

    GSENSOR_RUNNER_INTERRUPT        = 0x2000,

    GSENSOR_SHAKE_INTERRUPT         = 0x4000,
    GSENSOR_REPEAT_INTERRUPT        = 0x8000,

    GSENSOR_SWITCH_INTERRUPT        = 0xFFFF
};

enum {
    GSENSOR_UP      = 0x0100,
    GSENSOR_DOWN    = 0x0200,
    GSENSOR_LEFT    = 0x0300,
    GSENSOR_RIGHT   = 0x0400,
    GSENSOR_TOP     = 0x0500,
    GSENSOR_BOTTOM  = 0x0600,
    GSENSOR_ZERO    = 0x0700
};

enum {
    GSENSOR_NONE_INT_ENABLE     = 0,
    GSENSOR_DOUBLE_TAP_ENABLE   = 1,
    GSENSOR_SHAKE_ENABLE        = 2,
    GSENSOR_RUNNER_ENABLE       = 3
};

enum {
    GSENSOR_EventCallBack     = 0,
    GSENSOR_DataCallBack      = 1,
};

#endif  //__ELA_GSENSOR_H__
